package Inits

import (
	"github.com/gin-gonic/gin"
	"sync"
)

var g *gin.Engine

var ginOnce sync.Once

func GinInit() *gin.Engine {
	ginOnce.Do(func() {
		r := gin.Default()
		g = r
	})
	return g
}
